package cn.ybk.system.mapper;

import cn.ybk.system.domain.Menu;
import cn.ybk.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper extends BaseMapper<Menu> {

    void addToMenus(@Param("roleId") Long id, @Param("menusId") List<Long> menus);

    void deleteByRole(Long id);

    List<Menu> findByLogininfo(Long id);
}
